//
//  HNSH_HomeGoodsHeader.m
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/2/23.
//

#import "HNSH_HomeGoodsHeader.h"

@interface HNSH_HomeGoodsHeader ()

@end

@implementation HNSH_HomeGoodsHeader

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self configUI];
    }
    return self;
}

- (void)configUI {
    UIImageView *iconImgV = [[UIImageView alloc]initWithFrame:CGRectMake(12, 17, 20, 20)];
    iconImgV.image = [UIImage imageNamed:@"home_goods_header_icon"];
    [self addSubview:iconImgV];
    self.iconImgV = iconImgV;
    
    UILabel *titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(36, 16, 200, 22)];
    titleLabel.text = @"精品推荐";
    titleLabel.textColor = [UIColor appBlack333LabelColor];
    titleLabel.font = [UIFont boldSystemFontOfSize:16];
    [self addSubview:titleLabel];
    self.titleLabel = titleLabel;
    
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(kScreenWidth-84, 0, 84, 39);
//    [button setTitle:@"更多" forState:UIControlStateNormal];
//    [button setTitleColor:[UIColor colorWithHexString:@"#C7C7CC"] forState:UIControlStateNormal];
//    button.titleLabel.font = [UIFont boldSystemFontOfSize:14];
//    [button setImage:[UIImage imageNamed:@"base_nav_show_right_white"] forState:UIControlStateNormal];
//    [self addSubview:button];
//    [button HNSH_layoutButtonWithEdgeInsetsStyle:HHZXButtonStyleTextLeft imageTitleSpace:7];
//    WeakSelf(weakSelf);
//    [[button rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
//        if (weakSelf.clickBlock) {
//            weakSelf.clickBlock();
//        }
//    }];
}

@end
